{extend name="../../admin/view/main"}

{block name="content"}

<div class="layui-tab layui-tab-card think-bg-white">

    <div class="layui-tab-content">

        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <th class='text-left nowrap'>商家名称</th>
                <th class='text-left nowrap'>所属公司名称</th>
                <th class='text-left nowrap'>登录账号</th>
                <th class='text-left nowrap'>联系方式</th>
                <th class='text-left nowrap'>累计收入（元）</th>
                <th class='text-left nowrap'>累计已提现金额（元）</th>
                <th class='text-left nowrap'>可提现金额（元）</th>
                <th class='text-left nowrap'>操作</th>
                <th></th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" type='checkbox' value='{$vo.merchant_id}'></label>
                </td>

                <td class='nowrap'>
                    <div class="inline-block text-top ">
                        <span>{$vo.shop_name|default='--'}</span>
                    </div>
                </td>
                <td class='nowrap'>
                    <div class="inline-block text-top">
                        <div><span>{$vo.company_name|default='--'}</span></div>
                    </div>
                </td>
                <td class='nowrap'>
                    <div class="inline-block text-top">
                        <div><span>{$vo.username|default='--'}</span></div>
                    </div>
                </td>
                <td class='nowrap'>
                    <div class="notselect margin-top-5">
                        <span class="layui-badge layui-bg-gray ">{$vo.ret_mobile}</span>
                    </div>
                </td>
                <td class='nowrap'>
                    <div class="inline-block text-top">
                        <div><span>{$vo.income_amount|default='--'}</span></div>
                    </div>
                </td>
                <td class='nowrap'>
                    <div class="inline-block text-top">
                        <div><span>{$vo.withdrawn_amount|default='--'}</span></div>
                    </div>
                </td>
                <td class='nowrap'>
                    <div class="inline-block text-top">
                        <div><span>{$vo.withdrawal_amount|default='--'}</span></div>
                    </div>
                </td>
                <td class='nowrap sub-strong-blue'>
                    <!--{if auth("apply")}-->
                    <a data-modal="{:url('admin/merchant/apply')}?merchant_id={$vo.merchant_id|default=''}"
                       class="layui-btn layui-btn-sm layui-btn-xs">提现审核</a>
                    <!--{/if}-->
                </td>

            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
    <script>form.render()</script>
</div>
{/block}
